<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <kfm-div>
        <template #default> 第一行 </template>
        <template #second> 第二行 </template>
      </kfm-div>
    </div>

    <script src="../vue/vue.global.js"></script>
    <script>
      const app = Vue.createApp({
        data() {
          return {};
        },
      });

      const kfmDiv = {
        template: `<div>
            <p><slot></slot></p>
            <p><slot name='second'></slot></p>
          </div>`,
      };

      app.component("kfm-div", kfmDiv);
      app.mount("#app");
    </script>
  </body>
</html>
